package com.vhackandroid.bremen.quizbox;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class WinActivity extends Activity{
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.winactivity_layout);
		TextView text = (TextView) findViewById(R.id.gewinner);
		String gewinner = getIntent().getStringExtra("name");
		if(gewinner.equalsIgnoreCase("-1")){
			text.setText("Gleichstand!");
		}else {
			text.setText(gewinner+" gewinnt!");
		}
	}

}
